SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 41678: Zero length character columns in DB2 are assigned a length of 32767 when read into SAS with the SAS/ACCESS® Interface to DB2 9.2 software

DetailsHotfixAboutRate It

Character data types with zero length in DB2 are assigned a length of 32767 when read into SAS, with the SAS/ACCESS Interface to DB2 9.2 software.

The SQL LENGTH column modifier can be used to change the default length assigned by SAS/ACCESS Interface to DB2.

The following example is when using a LIBNAME statement to DB2.

   PROC SQL;
     SELECT ZeroLengthColumn LENGTH=32 FORMAT=$32. INFORMAT=$32. 
   FROM db2lib.table;
   QUIT;

This example is when using pass-through code to DB2.

  PROC SQL;  
  CONNECT TO DB2(Connection parameters);
  SELECT ZeroLengthColumn LENGTH=32 FORMAT=$32. INFORMAT=$32. 
    FROM CONNECTION TO DB2 (SELECT ZeroLengthColumn FROM TABLE);
  QUIT;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to DB2Windows 7 Enterprise 32 bit9.2 TS2M39.3 TS1M0
Windows 7 Enterprise x649.2 TS2M39.3 TS1M0
Microsoft Windows XP Professional9.2 TS2M39.3 TS1M0
Microsoft Windows Server 20089.2 TS2M39.3 TS1M0
Microsoft Windows Server 2008 for x649.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 for x649.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.2 TS2M39.3 TS1M0
Microsoft® Windows® for x649.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS2M39.3 TS1M0
Microsoft Windows XP 64-bit Edition9.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS2M39.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS2M39.3 TS1M0
Windows 7 Home Premium 32 bit9.2 TS2M39.3 TS1M0
Windows 7 Home Premium x649.2 TS2M39.3 TS1M0
Windows 7 Professional 32 bit9.2 TS2M39.3 TS1M0
Windows 7 Professional x649.2 TS2M39.3 TS1M0
Windows 7 Ultimate 32 bit9.2 TS2M39.3 TS1M0
Windows 7 Ultimate x649.2 TS2M39.3 TS1M0
Windows Vista9.2 TS2M39.3 TS1M0
Windows Vista for x649.2 TS2M39.3 TS1M0
64-bit Enabled AIX9.2 TS2M39.3 TS1M0
64-bit Enabled HP-UX9.2 TS2M39.3 TS1M0
64-bit Enabled Solaris9.2 TS2M39.3 TS1M0
HP-UX IPF9.2 TS2M39.3 TS1M0
Linux9.2 TS2M39.3 TS1M0
Linux for x649.2 TS2M39.3 TS1M0
Solaris for x649.2 TS2M39.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.